package src.com.doit.Demo10;

public class Test {
    public static void main(String[] args) {
        NoteBook nb = new NoteBook();
        nb.open();
        method(new Mouse());
        method(new KeyBorad());
        nb.close();
    }
    public static void method(USB usb)
    {
        usb.openUSB();
        usb.closeUSE();
    }
}
